/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.iam.menu.controller;

import com.snail.server.iam.menu.manager.MenuManager;
import com.snail.server.iam.menu.vo.AppMenuVO;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zgadmin
 * @date 2025/9/26 17:58
 */
@Api(tags = "菜单管理")
@RestController
@RequestMapping("/app/{appId}/menu")
public class MenuController {

    @Resource
    MenuManager menuManager;

    @GetMapping
    public AppMenuVO menuByApp(@PathVariable("appId") Long appId) {
        return menuManager.menuByApp(appId);
    }

}